-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change symbology #31
Change symbology #31
Conversation
let r = R("pinkie "); | ||
html!(s, ^r).unwrap(); | ||
html!(s, ^r).unwrap(); | ||
// R is not-Copyable so this shows that it will auto-ref splice arguments that implement Render. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's the test showing that the compiler auto-refs the spliced values.
4d6bf75
to
3938739
Compare
👍 for using trait auto-ref. I'll have to disagree on removing the sigil from The rest of the patch looks good, so I'll be happy to merge once this is addressed. |
Ah, yep, I did wonder why it would be needed, but XML support makes sense. I'll add it back. |
$
->^
and#
->@
.#else
(I guess this could break using an element calledelse
, but who's gonna do that?)Fixes #21, #24 and #26.